<?php
/**
 * Created by PhpStorm.
 * User: LEEYOOL
 * Date: 15/01/19
 * Time: 23:04
 */
?>

<?php 
echo $this->load->view('partials/header');
?>

<?php 
if($this->uri->segment(1) == "")
{
    echo $this->load->view('partials/slider');
}
?>

<div id="body" class="container">
   <div class="row">
    <?php
    echo $this->load->view($page); 
    ?>
   </div>
</div>
<?php 
echo $this->load->view('partials/footer');
?>